package com.ngkj.zmfptback.sys.service.read.impl;

import com.ngkj.zmfptback.sys.mapper.read.SystemReadMapper;
import com.ngkj.zmfptback.sys.service.read.SystemService;
import com.ngkj.zmfptCommon.common.util.TreeUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author ChenHN
 * @since 2021/10/26 creation
 **/
@Service
public class SystemServiceImpl implements SystemService {

    @Resource
    private SystemReadMapper systemReadMapper;

    @Override
    public Map<String, List<Map<String, Object>>> getDictsData() {
        List<Map<String, Object>> dictsData = systemReadMapper.getDictsData();
        Map<String, List<Map<String, Object>>> data = TreeUtil.getData(dictsData, "dict_type");
        return data;
    }
}
